﻿@model project.Category
@{
    ViewBag.Title = "Categories";
    Layout = "~/Views/Shared/Admin_Layout.cshtml";
}
<h2>
    Categories</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<div class="load_page">
    <div class="formEl_b">
        @using (Html.BeginForm("Categories", "Admin", FormMethod.Post, new RouteValueDictionary(new { @class = "mainForm", @id = "validation" })))
        {
            @Html.ValidationSummary(true)
            <fieldset>
                <legend>Category</legend>
                <div class="section ">
                    <label>
                        Name</label>
                    <div>
                        @Html.TextBoxFor(model => model.name, new { @id = "required", @class = "validate[required] large" })
                    </div>
                </div>
                <div class="section textonly">
                    <label>
                        Url <small>Autocomplete</small></label>
                    <div>
                        @Html.TextBoxFor(model => model.url, new { Class = " large" })
                    </div>
                </div>
                <div class="section">
                    <label>
                        Description</label>
                    <div>
                        @Html.TextAreaFor(model => model.description, new { @id = "editor", @class = "editor", @cols = "", @rows = "10" })
                    </div>
                </div>
                <div class="section ">
                    <label>
                        Tags</label>
                    <div>
                        @Html.TextBoxFor(model => model.tag, new { @class = "large" })
                    </div>
                </div>
                <div class="section numericonly">
                    <label>
                        Order</label>
                    <div>
                        @Html.TextBoxFor(model => model.order, new { @class = "small" })
                    </div>
                </div>
                <div class="section">
                    <label>
                        Status</label>
                    <div>
                        @Html.EditorFor(model => model.status)
                    </div>
                </div>
                <div class="section last">
                    <div>
                        <input type="submit" class="uibutton" id="add" value="Create" />
                        <input type="reset" class="uibutton confirm" value="Reset" />
                    </div>
                </div>
            </fieldset>
        }
    </div>
</div>
